package com.endbd.systemmanagement.dao.job;

import com.endbd.feignapi.model.system.Job;
import com.endbd.systemmanagement.model.JobCondition;
import com.endbd.systemmanagement.model.ModuleImpl;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface JobDao {
  List<Job> getJobList(JobCondition jobCondition);

  int createJob(Job job);

  int zx(Integer id, String state);

  int updateJob(Job job);

  List<ModuleImpl> getModules();

  List<Integer> getGrant(Integer id);

  int depriveGrant(Integer id, List<Integer> list);

  int endowGrant(Integer id, List<Integer> list);
}
